namespace HEFramework
{
    [Invoke((long)eSceneType.Main)]
    public class Invoke_Scene_Main : AInvokeHandler<SceneInfo>
    {
        public override void Handle(SceneInfo _args)
        {
            Log.Debug("场景开始");
            Entity scene = _args.Scene;
            scene.AddChild<TimerComponent>();
            scene.AddChild<UIComponent>();
            scene.AddChild<ResourcesComponent>();
            scene.AddChild<AudioComponent, int>(0);
            scene.AddChild<DataTableComponent>();

            scene.AddChild<LoginUI>();
        }
    }
}